#ifndef RECOGNIZEDEVICE_H
#define RECOGNIZEDEVICE_H

#include <QObject>
#include <QTcpSocket>
#include "device.h"
#include "description.h"
#include <QJsonObject>

#include "../cnn/defectrecognizer.h"

class RecognizeDevice : public Device
{
    Q_OBJECT
public:
    explicit RecognizeDevice(QObject *parent = nullptr);
    ~RecognizeDevice();

private:
    Description*        m_pDescription;

private:
    DefectRecognizer    m_objDefectRecognizer;

public:
    virtual void writeXML(QXmlStreamWriter &writer) override;
    virtual void readFromXML(QXmlStreamReader &reader) override;

    virtual int initDevice() override;
    virtual void writeData(const QVariant &data) override;
    virtual void uninitDevice() override;
    virtual QString getClassName() override;
};

#endif // RECOGNIZEDEVICE_H
